# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=poppler-data
pkgver=0.4.9
pkgrel=1
pkgdesc="Encoding data for the poppler PDF rendering library"
arch=('any')
license=('custom' 'GPL2')
conflicts=('poppler<0.10.5')
url="https://poppler.freedesktop.org/"
source=(https://poppler.freedesktop.org/${pkgname}-${pkgver}.tar.gz)
sha256sums=('1f9c7e7de9ecd0db6ab287349e31bf815ca108a5a175cf906a90163bdbe32012')

package() {
  cd ${pkgname}-${pkgver}
  make prefix=/usr DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING COPYING.adobe \
    "${pkgdir}/usr/share/licenses/${pkgname}/"
}
